package de.breitbeil.jbooking.ui.dataview.columns;

import java.util.Comparator;

import javax.swing.table.TableCellRenderer;

public class DataViewColumnImpl implements DataViewColumn {

    private String columnName;
    private TableCellRenderer cellRenderer;
    private int preferredWidth;
    private boolean objectCellRenderer;
    private Comparator<?> comparator;
    private String[] filterProperties;
    //private TableCellEditor cellEditor;
    //private int minWidth;
    //private int maxWidth;
    //private boolean resizeable;


    public DataViewColumnImpl(String columnName) {
        this.columnName = columnName;
    }
    
    public String getColumnName() {
        return columnName;
    }
    
    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }
    
    public TableCellRenderer getCellRenderer() {
        return cellRenderer;
    }
    
    public void setCellRenderer(TableCellRenderer cellRenderer) {
        this.cellRenderer = cellRenderer;
    }
    
    public int getPreferredWidth() {
        return preferredWidth;
    }
    
    public void setPreferredWidth(int preferredWidth) {
        this.preferredWidth = preferredWidth;
    }

    public boolean isObjectCellRenderer() {
        return objectCellRenderer;
    }

    public void setObjectCellRenderer(boolean objectCellRenderer) {
        this.objectCellRenderer = objectCellRenderer;
    }

    public Comparator<?> getComparator() {
    	return comparator;
    }
    
    public void setComparator(Comparator<?> comparator) {
    	this.comparator = comparator;
    }

    public void setFilterProperties(String[] filterProperties) {
        this.filterProperties = filterProperties;
    }

    public String[] getFilterProperties() {
        return filterProperties;
    }

    /* TODO: Das kann man evtl spaeter noch einbauen
    public TableCellEditor getCellEditor() {
        return cellEditor;
    }
    public void setCellEditor(TableCellEditor cellEditor) {
        this.cellEditor = cellEditor;
    }
    public int getMinWidth() {
        return minWidth;
    }
    public void setMinWidth(int minWidth) {
        this.minWidth = minWidth;
    }
    public int getMaxWidth() {
        return maxWidth;
    }
    public void setMaxWidth(int maxWidth) {
        this.maxWidth = maxWidth;
    }
    public boolean isResizeable() {
        return resizeable;
    }
    public void setResizeable(boolean resizeable) {
        this.resizeable = resizeable;
    }
    */
}
